package com.syqc.monitor.ui.photo

import androidx.activity.viewModels
import autodispose2.autoDispose
import com.syqc.base.BaseReportActivity
import com.syqc.base.BaseReportViewModel
import com.syqc.comlib.utils.startActivityTo
import com.syqc.monitor.R
import com.syqc.utils.Keys

/**
 *@Author Jasper
 *@Time   2020/12/10
 *@Desc   照片查询
 */
class PhotosActivity : BaseReportActivity() {
    private val mViewModel by viewModels<PhotosViewModel>()

    override val mBaseViewModel: BaseReportViewModel
        get() = mViewModel

    override val titleId: Int
        get() = R.string.title_report_photo

    override fun initView() {
        super.initView()
        mViewModel.dataObserver().autoDispose(scopeProvider).subscribe {
            startActivityTo<PhotoInfoActivity>(this) {
                putExtra(Keys.INTENT_TITLE, mViewModel.carName)
            }
        }
    }


}